// JQuery hover event with timeout by Taufik Nurrohman
// https://plus.google.com/108949996304093815163/about
(function($) {
    $.fn.hoverTimeout = function(timeout1, fn1, timeout2, fn2) {
        return this.each(function() {
            var t = null, $this = $(this);
            $this.hover(function() {
                clearTimeout(t);
                t = setTimeout(function() {
                    fn1.call($this);
                }, timeout1);
            }, function() {
                clearTimeout(t);
                t = setTimeout(function() {
                    fn2.call($this);
                }, timeout2);
            });
        });
    };
})(jQuery);

var numposts   = 5,
    cmtext     = "Comment",
    pBlank     = "http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s1600/grey.gif",
    pkBlank     = "http://2.bp.blogspot.com/-5sosqbvgRi4/UW4zbrXesJI/AAAAAAAABPs/pTP4l9VamM4/s1600/4TNP04I0VDET.JPG",
    numcomment = 5,
    cmsumm     = 80,
    adminBlog  = "Sam";

// RECENT POSTS
// VISIT: http://hompimpaalaihumgambreng.blogspot.com
// Recent Post with Thumbnail

function dropdownposts(f){var g=f.feed.entry;for(var e=0;e<numposts;e++){var c;for(var d=0;d<g[e].link.length;d++){if(g[e].link[d].rel=="alternate"){c=g[e].link[d].href;break}}for(var b=0;b<g[e].link.length;b++){if(g[e].link[b].rel=="replies"&&g[e].link[b].type=="text/html"){cmnum=g[e].link[b].title.split(" ")[0];break}}var h=g[e].title.$t,a=g[e].published.$t.substring(0,10),a=a.replace(/-/g,"/");if("media$thumbnail" in g[e]){postimg=g[e].media$thumbnail.url}else{postimg=pBlank}document.write('<li><a class="thumrc" href="'+c+'"><img src="'+postimg+'" class="rp-thumb" alt="thumb" /></a>');document.write('<div class="infrent"><a href="'+c+'">'+h+'</a><span class="footer-outer"><span class="dt">'+a+'</span><span class="cm"> - '+cmnum+" "+cmtext+"</span></span></div></li>")}}